package com.kaifamiao.N0824;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class Node3 {

    public static void main(String[] args) {

        LocalDate date = LocalDate.now();

        LocalDateTime dt = date.atStartOfDay();
        System.out.println(dt = date.atTime(10, 20));

        System.out.println(dt.toLocalDate());

        LocalTime time = LocalTime.now();

        dt = time.atDate((LocalDate.of(2022, 8, 24)));

        System.out.println(dt.toLocalTime());
    }

}
